// 点击轮播跳转
export default {
	data() {
		return {

		}
	},
	methods: {
		//轮播跳转
		bannerDetail(item) {
			if (item.link) { //跳转地址
				if (item.link.indexOf('http') == -1) {
					this.$nav.push({
						path: item.link
					})
				} else { //跳外部
					window.location.href = item.link
				}
			} else if (item.detailUrl) { //跳详情
				this.$storage.setStore("bannerDetail",
					item.detailUrl,
				);
				this.$nav.push({
					path: "/pages/home/bannerDetail/bannerDetail"
				});
			}
		},
	}
}
